<?php echo $this->Form->create('Garage'); ?>
<section class="panel">

<header class="panel-heading">GARAGE MASTER</header>
                          <div class="panel-body">
            
                        

							 <div class="form-group">
                                     <div class="col-lg-12">
                                          <div class="row">
                                              <div class="col-lg-3">
											 
												  <?php   echo $this->Form->input('id'); ?>
                                                  <?php  echo $this->Form->input('garage_name',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-3">
                                                 <?php  echo $this->Form->input('contact_no',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-3">
                                                  <?php  echo $this->Form->input('mobile_no',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-3">
                                                  <?php  echo $this->Form->input('remarks',array('class'=>'form-control')); ?>
                                              </div>
											  
                                          </div>

                                      </div>
									  <div class="col-lg-12">
                                          <div class="row">
                                             
											   <div class="col-lg-3">
                                                  <?php  echo $this->Form->input('contact_name',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-6">
                                                 <?php  echo $this->Form->input('contact_address',array('class'=>'form-control')); ?>
                                              </div>
                                          </div>

                                      </div>
									  
									  
								</div>			

                            
                          </div>
						  <div class="panel-body">
                             <?php echo $this->Form->input('Submit',array('type'=>'submit', 'class'=>'btn btn-info','label'=>false));
                              echo $this->Form->end();
                             ?>
                          </div>
                      </section>									  





























<section class="panel">
<div class="garages index">
	<header class="panel-heading"><h4><?php echo __('Garages'); ?><h4></header>
	<table cellpadding="0" cellspacing="0" class="table table-striped border-top dataTable">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('garage_name'); ?></th>
			<th><?php echo $this->Paginator->sort('contact_no'); ?></th>
			<th><?php echo $this->Paginator->sort('mobile_no'); ?></th>
			<th><?php echo $this->Paginator->sort('remarks'); ?></th>
			<th><?php echo $this->Paginator->sort('contact_name'); ?></th>
			<th><?php echo $this->Paginator->sort('contact_address'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($garages as $garage): ?>
	<tr>
		<td><?php echo h($garage['Garage']['id']); ?>&nbsp;</td>
		<td><?php echo h($garage['Garage']['garage_name']); ?>&nbsp;</td>
		<td><?php echo h($garage['Garage']['contact_no']); ?>&nbsp;</td>
		<td><?php echo h($garage['Garage']['mobile_no']); ?>&nbsp;</td>
		<td><?php echo h($garage['Garage']['remarks']); ?>&nbsp;</td>
		<td><?php echo h($garage['Garage']['contact_name']); ?>&nbsp;</td>
		<td><?php echo h($garage['Garage']['contact_address']); ?>&nbsp;</td>
		<td class="actions">
			
			<?php echo $this->Html->link(__('Edit'), array('action' => 'index', $garage['Garage']['id'])); ?>

			<?php echo $this->Form->postLink(__('Delete'), array('action'=>'delete',$garage['Garage']['id']),null, __('Are you sure you want to delete'),array('escape'=>false)); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
 </section>		
